﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using System.ComponentModel;


namespace WebArchivosTelefonica
{
	/// <summary>
	/// Clase wrapper de MembershipUser para listar usuarios
	/// </summary>
	public class MembershipUserWrapper : MembershipUser
	{
		/// <summary>
		/// Constructor por defecto le ingresa un MembershipUser y llama al constructor base
		/// </summary>
		/// <param name="mu"></param>
		public MembershipUserWrapper(MembershipUser mu)
			: base(mu.ProviderName, mu.UserName, mu.ProviderUserKey, mu.Email, mu.PasswordQuestion,
			mu.Comment, mu.IsApproved, mu.IsLockedOut, mu.CreationDate, mu.LastLoginDate, mu.LastActivityDate,
			mu.LastPasswordChangedDate, mu.LastLockoutDate)
		{
		}

		/// <summary>
		/// Propiedad UserName usada en el listado de usuarios
		/// </summary>
		[DataObjectField(true)]
		public override string UserName
		{
			get { return base.UserName; }
		}




	}
}